package com.hw.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 后台用户表
 * </p>
 *
 * @author lixiaopeng
 * @since 2022-11-20
 */
@Getter
@Setter
@TableName("t_admin")
public class AdminPO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * 密码
     */
    private String pPassword;

    /**
     * 角色
     */
    private Integer role;

    /**
     * 盐
     */
    private String salt;

    /**
     * 是否删除 0未删除  1已删除
     */
    private Integer delFlag;

    private Date createdAt;

    private Date updatedAt;

    /**
     * 最后登录ip
     */
    private String lastIp;


}
